package cn.tedu.service;

import cn.tedu.pojo.Car;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.util.Arrays;

@Component
public class CarServicempl implements CarService {

    @Override
    public Car get() {
        Car c = new Car();
        c.setName("法拉利");
        c.setColor("黑色");
        c.setPrice(8955500.00);

        return c;
    }

    @Override
    public void add(Car c){
        System.out.println(c);
    }

    @Override
    public void update(Car c) {

    }


}
